import Vue from 'vue'
import Router from 'vue-router'
import Home from '@/pages/home'
import Add from '@/pages/add'
import History from '@/pages/history'

Vue.use(Router)

export default new Router({
  routes: [{
      path: '/',
      redirect: '/home',
    },
    {
      path: '/home',
      name: 'Home',
      component: Home
    },
    {
      path: '/add',
      name: 'Add',
      component: Add
    },
    {
      path: '/history',
      name: 'History',
      component: History
    }
  ]
})
